package com.skyon.rule.res.model;

import java.io.Serializable;

public class ErrorMsg implements Serializable{
	private static final long serialVersionUID = -2167312494374578962L;
	
	public static final String SUCCESS="0";
	public static final String DROOLS_ERROR="-1";
	
	private String errorCode;
	private String errorDesc;
	private Exception exception;
	private String ruleName;
	
	public ErrorMsg(){
		this("0","成功");
	}
	
	public ErrorMsg(String code,String desc,Exception e){
		this.errorCode=code;
		this.errorDesc=desc;
		this.exception=e;
		
	}
	public ErrorMsg(String code,String desc){
		this(code,desc,null);
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorDesc() {
		return errorDesc;
	}

	public void setErrorDesc(String errorDesc) {
		this.errorDesc = errorDesc;
	}

	public Exception getException() {
		return exception;
	}

	public void setException(Exception exception) {
		this.exception = exception;
	}

	public String getRuleName() {
		return ruleName;
	}

	public void setRuleName(String ruleName) {
		this.ruleName = ruleName;
	}
}
